package com.codeZ.FactoryPattern.factoryMethod.factory.impl;

import com.codeZ.FactoryPattern.factoryMethod.factory.IFreeGoodsFactory;
import com.codeZ.FactoryPattern.factoryMethod.product.IFreeGoods;
import com.codeZ.FactoryPattern.factoryMethod.product.impl.DiscountFreeGoods;

/**
 * 满减优惠工厂
 *
 * @author codeZhang
 * @Date 2024/8/1 14:49
 */
public class DiscountFreeGoodsFactory implements IFreeGoodsFactory {
    @Override
    public IFreeGoods getInstance() {
        return new DiscountFreeGoods();
    }
}
